.score-form-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    padding: 2rem 0;
}

.score-form-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

.score-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    position: relative;
}

.student-info-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.form-section {
    margin-bottom: 2rem;
}

.section-title {
    color: #4361ee;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label-custom {
    font-weight: 600;
    color: #2b2d42;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control-custom {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.form-control-custom:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.score-input-group {
    position: relative;
}

.score-input-group .form-control-custom {
    padding-right: 3rem;
}

.score-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
}

.btn-save {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    color: white;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.5);
    background: linear-gradient(135deg, #3a56d4 0%, #2f48b8 100%);
    color: white;
}

.btn-back {
    background: white;
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.subject-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.politics-icon {
    background: linear-gradient(135deg, #e63946 0%, #d00000 100%);
    color: white;
}

.english-icon {
    background: linear-gradient(135deg, #4cc9f0 0%, #3a86ff 100%);
    color: white;
}

.math-icon {
    background: linear-gradient(135deg, #7209b7 0%, #560bad 100%);
    color: white;
}

.professional-icon {
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    color: white;
}

.subject-row {
    margin-bottom: 1.5rem;
}

.subject-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.subject-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.total-score-display {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.total-score-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.score-preview {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 错误状态样式 */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .score-form-container {
        padding: 1rem;
    }

    .subject-card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .card-header-custom .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .card-header-custom .text-end {
        text-align: center !important;
    }
}